$(
    function () {
        $(".property_value").focus(
            function()
            {
                $(this).css("border","1px solid yellow");
            }

        );
        $(".property_value").blur(
            function () {
                $(this).css("border","1px solid black")
            }
        );
        $(".property_value").keyup(
            function () {
                var pid = $(this).prev().val();
                var ptid = $(this).prev().prev().val();
                // var id = $(this).prevUntil(".id").val();
                var value = $(this).val();
                var out = $(this);
                var data = {
                    "pid":pid,
                    "ptid":ptid,
                    // "id":id,
                    "value":value
                }
                var url = "admin_propertyValue_update";
                $.post(url,{
                    "data":JSON.stringify(data)
                },function (data) {
                    if(data==success)
                    {
                        out.css("border","1px solidgreen")
                    }
                    else
                    {
                        out.css("border","1px solidred")
                    }
                    // console.log(pid+" "+ptid+" "+value);
                })
            }
        );
    }
);